package com.smart.seckilldemo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "t_order")
public class Order {
    /**
     * 订单ID
     */
    @TableId(value = "order_id", type = IdType.INPUT)
    private Long orderId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 订单号
     */
    @TableField(value = "order_number")
    private Long orderNumber;

    /**
     * 下单时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 订单状态（0待支付1待发货2待收货3待评价4已完成5已删除）
     */
    @TableField(value = "order_status")
    private Byte orderStatus;

    /**
     * 收货地址ID
     */
    @TableField(value = "address")
    private Integer address;

    /**
     * 金额
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 交易类型(1消费 2充值)
     */
    @TableField(value = "type_id")
    private Byte typeId;

    @TableField(value = "haha")
    private String haha;

    public static final String COL_ORDER_ID = "order_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_ORDER_NUMBER = "order_number";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_ORDER_STATUS = "order_status";

    public static final String COL_ADDRESS = "address";

    public static final String COL_MONEY = "money";

    public static final String COL_TYPE_ID = "type_id";

    public static final String COL_HAHA = "haha";
}